﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 习题2._2_百鸡问题_CSharp
{

	
    class Program
    {
        static void Main(string[] args)
        {
			int a = 100;
			string line;
			while ((line = Console.ReadLine()) != null)
			{
				string[] token = line.Split();
				a = Convert.ToInt32(token[0]);
				for ( int x= 0; x <= 100 && 5 * x <= a; x++)
				{
					for (int y = 0; y <= 100 - x && 5 * x + 3 * y <= a; y++)
					{
						for (int z = 0; z <= 100 - x - y&& 5 * x + 3 * y + z * 1.0 / 3 <= a; z++)
						{
							if (x + y + z == 100)
							{
                                Console.WriteLine($"x={x},y={y},z={z}");
							}
						}
					}
				}
			}
		}
    }
}
